﻿@model IEnumerable<Capacitacion.Models.Restaurant>
@{
    ViewBag.Title = "Home Page";
}
<h2>@ViewBag.Message</h2>
<p>
    @ViewBag.MSG :
</p>
<p>
    @Html.ActionLink("Lists of People", "Index", "List") |
    @Html.ActionLink("Restaurant App", "Index", "Restaurant") |
    @Html.ActionLink("List Of Reviews", "Index", "Reviews")
</p>
@using (@Ajax.BeginForm("Search", "Home", new AjaxOptions
{
    HttpMethod = "GET",
    InsertionMode = InsertionMode.Replace,
    UpdateTargetId = "searchResults"
}))
{
    <div>
        @ViewBag.SearchTxt
        <form method="get" action="@Url.Action("JsonSearch", "Home")" id="searchForm">
        <input type="text" name="q" data-autocomplete="@Url.Action("QuickSearch", "Home")" />
        <input type="submit" name="Search" />
        </form>
    </div>
}
<table id="tabla">
    <thead>
    </thead>
    <tbody id="searchResults">
    </tbody>
</table>
<script id="searchTemplate" type="text/x-jquery-tmpl">
    <tr>
        <td>
            ${Name}
        </td>
        <td>
            ${City}, ${Country}
        </td>
    </tr>
</script>
